<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=7" />
	<title>“半价汇”广告管理系统</title>
	<!-- Reset Stylesheet -->
	<link rel="stylesheet" href="static/css/reset.css" type="text/css" media="screen" />
  
	<!-- Main Stylesheet -->
	<link rel="stylesheet" href="static/css/style.css" type="text/css" media="screen" />
	
	<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
	<link rel="stylesheet" href="static/css/invalid.css" type="text/css" media="screen" />	
	<script type="text/javascript" src="static/js/jquery.min.js"></script>
	<!-- jQuery Configuration -->
	<script type="text/javascript" src="static/js/simpla.jquery.configuration.js"></script>
	<script type="text/javascript" src="static/js/date.js"></script>
	<script type="text/javascript" src="static/js/jquery.datePicker.js"></script>
</head>
<body>
	<div id="body-wrapper">
		<?php include 'admin_sidebar.html'; ?>
		<div id="main-content">
			<div class="content-box">
				<div class="content-box-header">
					<h3>添加微博</h3>
					<div class="clear"></div>
				</div>
				<div class="content-box-content">
				<form action="<?php echo spUrl('idea', 'weibo_post');?>" method="post" enctype="multipart/form-data" id="store_add">
				<input type="hidden" name="w_id" id="w_id" value="<?php echo $result[w_id]; ?>">
				<fieldset>
					<p>
						<label>简介：</label>
						<input type="text" name="title" id="title" class="text-input small-input" value="<?php echo $result[title]; ?>"/>
					</p>
					<p>
						<label>图片：</label>
						<input type="file" name="thumb" id="thumb" class="text-input small-input"/>
					</p>
					<p>
						<label>分类：</label>
						<select name="type" id="type">
							<option value="0" >请选择</option>
							<option value="1" <?php if($result[type]==1) echo 'selected'; ?>>微博</option>
							<option value="2" <?php if($result[type]==2) echo 'selected'; ?>>送妈妈</option>
							<option value="3" <?php if($result[type]==3) echo 'selected'; ?>>送自己</option>
							<option value="4" <?php if($result[type]==4) echo 'selected'; ?>>送男友</option>
						</select>
					</p>
					<p>
						<label>链接：</label>
						<input type="text" name="url" id="url" class="text-input medium-input" value="<?php echo $result[url]; ?>"/>
					</p>
					<p>
						<input type="submit" value="确定" class="button" style="width: 105px;" /> <input type="reset" style="width: 45px;" class="button">
					</p>
				</fieldset>
				</form>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
</script>
</html>